package com.google.code.p.restrpc.http;

import java.util.HashMap;
import java.util.Map;

import org.apache.http.StatusLine;

public class DefaultHttpClientResponse {
    
    private StatusLine statusLine;
    
    private String body;
    
    private Map<String, String> headers = new HashMap<String, String>();
    
    public StatusLine getStatusLine() {
        return statusLine;
    }
    
    public void setStatusLine(StatusLine statusLine) {
        this.statusLine = statusLine;
    }
    
    public String getBody() {
        return body;
    }
    
    public void setBody(String body) {
        this.body = body;
    }
    
    public Map<String, String> getHeaders() {
        return headers;
    }
    
    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }
    
    public void put(String key, String value) {
        this.headers.put(key, value);
    }
    
    public String remove(String key) {
        return this.headers.get(key);
    }
    
    public boolean containsKey(String key) {
        return this.headers.containsKey(key);
    }
    
    public boolean containsValue(String key) {
        return this.headers.containsValue(key);
    }
    
}
